const appConstant = {
    /**
     * 状态码
     */
    HttpStatus: {
        OK : 10000,
        FAIL: -10000,
        BAD_REQUEST : 400,
        UNAUTHORIZED : 401,
        FORBIDDEN : 403,
        NOT_FOUND : 404,
        METHOD_NOT_ALLOWED : 405,
        INTERNAL_SERVER_ERROR : 500,
        SERVICE_UNAVAILABLE : 503
    },

    /**
     * 认证token key
     */
    Auth: {
        AccessTokenKey : "cookie1",
        RefreshTokenKey : "cookie2",
        TokenTypeKey : "cookie3",
        TokenExpiresInKey : 'cookie4',
        TokenScopeKey : 'cookie5',
        AuthUserKey: "auth_user"
    },

    /**
     * 常用路由名
     * @type {{Login: string, Home: string, Main: string}}
     */
     ConstantRouteName: {
        Login : "Login",
        Home : "Home",
        Main : "Main",
    },

    /**
     * 是否自动跳转
     * @type {{openAutoJumpOut: boolean, stagnateTime: number}}
     */
     AutoJumpCfg: {
        openAutoJumpOut: true,
        stagnateTime:   1 * 60 * 60 * 1000// 无操作停留时间，默认30分钟
    },

    BaseUrl: "http://localhost:8080",
    DIC_CODE: {
        SYSTEM_SEX: 'SYSTEM_SEX',
        SYSTEM_USERTYPE: 'SYSTEM_USERTYPE',
        SYSTEM_ENABLED: 'SYSTEM_ENABLED',
        SYSTEM_DEPT: 'SYSTEM_DEPT',
    }
}


export default appConstant;

